<template>
    <div>bbb</div>
</template>
<script>
import Event from '@/utils/eventBus';
export default{
    mounted(){
        Event.$on('a',(v)=>{
            console.log(v);
        })
        Event.$emit('b','b的数据');
    }
}
</script>